package com.njtoyo.taxi.admin.mapper.master.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

public enum ActivitySeckillRuleRoundUnit {
    hour(1, "时"),
    day(2, "日"),
    week(3, "周"),
    month(4, "月"),
    year(5, "年");

    @EnumValue
    private final int code;
    private final String desc;

    ActivitySeckillRuleRoundUnit(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }
}
